package com.cy.test.test;

import com.sun.xml.internal.bind.v2.runtime.output.FastInfosetStreamWriterOutput;

public class test1 {
    public static void main(String[] args) {
        Dog dog =new Dog();
        dog.setName("黑");
        dog.setAge(6);
        dog.play();
        System.out.println(dog.getName());
        System.out.println(dog.getAge());
        System.out.println("a的值是："+dog.a);
        dog.test();

        Cat cat =new Cat();
        cat.setName("白");
        cat.setAge(2);

        System.out.println(cat.getName());
        System.out.println(cat.getAge());
        cat.play();
    }


}
